# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=libgss
pkgver=0.1.5
pkgrel=1
pkgdesc="An implementation of the Generic Security Service Application Program Interface"
url="https://www.gnu.org/software/gss/"
arch="all"
license="GPL-3.0-or-later"
depends_dev="pkgconfig"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://alpha.gnu.org/gnu/gss/gss-$pkgver.tar.gz"
builddir="$srcdir"/gss-$pkgver

prepare() {
	default_prepare
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	make tests
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5dd76b763b787dfa90d378420272236a6ebc29d5d123460bea9951e8e57c1725e4b3164447e9c0f01e7cf031fd177daee45f3ccdc7bbe8f73f118898966280e7  gss-0.1.5.tar.gz"
